Life has its ups and downs, but it certainly has its rewards.
人生有沉也有浮,但是无论怎样都确有其价值。
This restaurant serves spaghetti, but not pizza.
这家餐厅做通心粉,但是没有比萨饼。
When we use a phrase like 'it serves him right', we are, in part, admitting that a certain set of circumstances has enabled justice to act of its own accord.